package com.arong.swing.db.entity;

import java.io.Serializable;
import java.sql.Timestamp;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

public class Equipment implements Serializable{ 
    /**
	 * 
	 */
	private static final long serialVersionUID = 4758690540571517394L;
	public static final String USE_STATE ="1";
    public static final String UN_USE_STATE ="0";
	
	private String equiptId;//设备标识号,唯一标识

	private String ipAddr;//ip地址

	private String devClassId;//--设备类型,外键

	private String equiptModel;//设备型号

	private String platformVn;//平台版本号

	private String platformType;//平台类型

	private String netSurport;//网络支持

	private String deptId;//可以是组织机构 id也可以是检查站id，二选一,用于权限控制

	private String phone;//手机号

	private String equitb;//设备厂商名称及联系方式

	private String macAddr;//mac地址

	private String imsi;//IMSI识别码

	private String useState=USE_STATE;//使用状态 1启用,0停用

	private String belonguser;//管理员
	
	private String useduser;//使用者

	private Timestamp registTime;//注册时间
	
	private Timestamp stsTime;

	private String remark;
	
	public Timestamp getStsTime() {
		return stsTime;
	}

	public void setStsTime(Timestamp stsTime) {
		this.stsTime = stsTime;
	}

	public String getUseduser() {
		return useduser;
	}

	public void setUseduser(String useduser) {
		this.useduser = useduser;
	}

	public void setEquiptId(String equiptId) {
		this.equiptId = equiptId;
	}
	
	public String getEquiptId() {
		return equiptId;
	}

	public void setIpAddr(String ipAddr) {
		this.ipAddr = ipAddr;
	}
	
	public String getIpAddr() {
		return ipAddr;
	}

	public void setDevClassId(String devClassId) {
		this.devClassId = devClassId;
	}
	
	public String getDevClassId() {
		return devClassId;
	}

	public void setEquiptModel(String equiptModel) {
		this.equiptModel = equiptModel;
	}
	
	public String getEquiptModel() {
		return equiptModel;
	}

	public void setPlatformVn(String platformVn) {
		this.platformVn = platformVn;
	}
	
	public String getPlatformVn() {
		return platformVn;
	}

	public void setPlatformType(String platformType) {
		this.platformType = platformType;
	}
	
	public String getPlatformType() {
		return platformType;
	}

	public void setNetSurport(String netSurport) {
		this.netSurport = netSurport;
	}
	
	public String getNetSurport() {
		return netSurport;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}
	
	public String getDeptId() {
		return deptId;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	public String getPhone() {
		return phone;
	}

	public void setEquitb(String equitb) {
		this.equitb = equitb;
	}
	
	public String getEquitb() {
		return equitb;
	}

	public void setMacAddr(String macAddr) {
		this.macAddr = macAddr;
	}
	
	public String getMacAddr() {
		return macAddr;
	}

	public void setImsi(String imsi) {
		this.imsi = imsi;
	}
	
	public String getImsi() {
		return imsi;
	}

	public void setUseState(String useState) {
		this.useState = useState;
	}
	
	public String getUseState() {
		return useState;
	}

	public void setBelonguser(String belonguser) {
		this.belonguser = belonguser;
	}
	
	public String getBelonguser() {
		return belonguser;
	}

	public void setRegistTime(Timestamp registTime) {
		this.registTime = registTime;
	}
	
	public Timestamp getRegistTime() {
		return registTime;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public String getRemark() {
		return remark;
	}

	public boolean equals(Object obj) {
		boolean equals = false;
		if (obj != null && obj instanceof Equipment) {
			Equipment another = (Equipment) obj;
			equals = new EqualsBuilder()
					.append(equiptId, another.getEquiptId())
					.isEquals();
		}
		return equals;
	}
	
	public int hashCode() {
		return new HashCodeBuilder(17, 37)
				.append(equiptId)
				.toHashCode();
	}
	
	public String toString() {
		return new ToStringBuilder(this)
				.append("equiptId", getEquiptId())
				.toString();
	}
}